package oojo.data;

import java.io.Serializable;
import java.util.Collection;

/**
 * A container that holds a page of data.
 * 
 * @param <E>
 */
public class DataPage<E> implements Serializable {
    
	private static final long serialVersionUID = -2580935782979693910L;
	
	private Collection<E> data;
    private Long total;

    /**
     * The contained entities.
     */
    public Collection<E> getData() {
        return data;
    }

    public void setData(Collection<E> data) {
        this.data = data;
    }

    /**
     * The total number of entities in the data store.
     */
    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }
}
